package com.cxx.java.spring.ioc.demo3;

import lombok.Data;

@Data
public class DemoA {
    private Integer id;
    private String name;
    public DemoA(){
        System.out.println("DemoA对象被产生了!");
    }

    public void print(){
        System.out.println("我的ID是:"+id+"姓名是:"+name);
    }

    @Override
    public String toString() {
        return "DemoA{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
